From: Adel Gadllah Date: Wed, 9 Feb 2011 19:42:44 +0000 (+0100) Subject: appSwitcher: Don't create thumbnails for destroyed windows X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9075 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a52ec8f286afd8b620b795cb62f7b9c37e000c7e;p=gnome-shell.git appSwitcher: Don't create thumbnails for destroyed windows --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 46c2a09bf..28d2b911f 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -1081,6 +1081,9 @@ ThumbnailList.prototype = { for (let i = 0; i < this._thumbnailBins.length; i++) { let mutterWindow = this._windows[i].get_compositor_private(); + if (!mutterWindow) + continue; + let windowTexture = mutterWindow.get_texture (); let [width, height] = windowTexture.get_size(); let scale = Math.min(1.0, THUMBNAIL_DEFAULT_SIZE / width, availHeight / height);